package com.qiangqiang.task.server.exception;

import com.qiangqiang.task.server.enums.TaskEnum;
import lombok.Getter;

/**
 * @author : sky
 * @date : 2018/7/12
 * @description :
 */
@Getter
public class TaskException extends RuntimeException {
    private Integer code;

    public TaskException(TaskEnum taskEnum){
        super(taskEnum.getMessage());
        this.code=taskEnum.getCode();
    }
}
